<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateShopNodeTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('shop_node', function (Blueprint $table) {
            $table->increments('id',11)->comment('自增id');
            $table->string('node_name',20)->comment('权限名称');
            $table->string('node_controllers',30)->comment('控制器');
            $table->string('node_action',30)->comment('方法');
            $table->integer('parent_id')->comment('父级id');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('shop_node');
    }
}
